package entities;

//这个主要针对数据显示用，在数据库中并没有cart表
//集合了android服务器端的CartEntity与OrderItemEntity
public class CartEntity {
	private int id = 0;
	private int userId = 0;
	private int goodsId = 0;
	private String goodsName = "";
	private String goodsImg = null;
	private double goodsPrice = 0d;
	private int itemCount = 1;
	private int itemState = 0;
	private String orderNo = null;
	private int sellerId = 0;
	private String sellerName = null;
	private String itemTime = null;

	private int itemIsPaid = 0;
	private int itemIsComment = 0;

	public CartEntity() {
		super();
	}

	public CartEntity(int id, int userId, int goodsId, String goodsName,
			String goodsImg, double goodsPrice, int itemCount, int itemState,
			String orderNo, int sellerId, String sellerName, String itemTime,
			int itemIsPaid, int itemIsComment) {
		super();
		this.id = id;
		this.userId = userId;
		this.goodsId = goodsId;
		this.goodsName = goodsName;
		this.goodsImg = goodsImg;
		this.goodsPrice = goodsPrice;
		this.itemCount = itemCount;
		this.itemState = itemState;
		this.orderNo = orderNo;
		this.sellerId = sellerId;
		this.sellerName = sellerName;
		this.itemTime = itemTime;
		this.itemIsPaid = itemIsPaid;
		this.itemIsComment = itemIsComment;
	}

	public int getId() {
		return id;
	}

	public int getUserId() {
		return userId;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public String getGoodsImg() {
		return goodsImg;
	}

	public double getGoodsPrice() {
		return goodsPrice;
	}

	public int getItemCount() {
		return itemCount;
	}

	public int getItemState() {
		return itemState;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public int getSellerId() {
		return sellerId;
	}

	public String getSellerName() {
		return sellerName;
	}

	public String getItemTime() {
		return itemTime;
	}

	public int getItemIsPaid() {
		return itemIsPaid;
	}

	public int getItemIsComment() {
		return itemIsComment;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public void setGoodsImg(String goodsImg) {
		this.goodsImg = goodsImg;
	}

	public void setGoodsPrice(double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public void setItemCount(int itemCount) {
		this.itemCount = itemCount;
	}

	public void setItemState(int itemState) {
		this.itemState = itemState;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public void setSellerId(int sellerId) {
		this.sellerId = sellerId;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	public void setItemTime(String itemTime) {
		this.itemTime = itemTime;
	}

	public void setItemIsPaid(int itemIsPaid) {
		this.itemIsPaid = itemIsPaid;
	}

	public void setItemIsComment(int itemIsComment) {
		this.itemIsComment = itemIsComment;
	}

	@Override
	public String toString() {
		return "CartEntity [id=" + id + ", userId=" + userId + ", goodsId="
				+ goodsId + ", goodsName=" + goodsName + ", goodsImg="
				+ goodsImg + ", goodsPrice=" + goodsPrice + ", itemCount="
				+ itemCount + ", itemState=" + itemState + ", orderNo="
				+ orderNo + ", sellerId=" + sellerId + ", sellerName="
				+ sellerName + ", itemTime=" + itemTime + ", itemIsPaid="
				+ itemIsPaid + ", itemIsComment=" + itemIsComment + "]";
	}

}
